<?php

namespace SGBD;

class NotImplementedException extends \BadMethodCallException
{
    public function __construct($message = '')
    {
        if ($message === '') {
            $bt = debug_backtrace();
            $last = $bt[1];
            $this->message = $last['class'] . '->' . $last['function']
                 . ' is not implemented';
        } else {
            parent::__construct($message);
        }
    }
}